package com.epam.strings.entities;

import com.epam.strings.application.Application;
import com.epam.strings.utils.Parser;
import org.apache.log4j.Logger;

import java.util.ArrayList;
import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * User: Yelena_M
 * Date: 11.08.13
 * Time: 17:26
 * To change this template use File | Settings | File Templates.
 */
public class Paragraph<Sentence> extends TextElement<Sentence> {

    private String paragraphText;

    public Paragraph() {

    }

    public Paragraph(String paragraphText) {
        this.paragraphText = paragraphText;
        Parser.parseParagraph(this);
    }

    public String getParagraphText() {
        return paragraphText;
    }

    public void setParagraphText(String paragraphText) {
        this.paragraphText = paragraphText;
    }

    @Override
    public String toString() {
        return "Paragraph{" +
                "paragraphText='" + paragraphText + '\'' +
               '}';
    }

    public void getElements() {
        for (int i = 0; i < this.size(); i++){

            System.out.println(this.get(i));
        }
    }

    @Override
    public void getChildren() {
        //To change body of implemented methods use File | Settings | File Templates.
    }
}